# try:
#     num = int(input('请输入一个整数:'))
#     num1 = 8 / num
#     print(num1)
# except ValueError:
#     print('输入非数字，请重新输入')
# except ZeroDivisionError:
#     print('不能输入数字零，请重新输入')
#
# num = input('请输入一个数字:')
# try:
#     num = int(num)
# except Exception as e:
#     print('输入错误',e)
# else:
#     if num % 2 ==0:
#         print('偶数')
#     else:
#         print('奇数')
# finally:
#     print('程序运行结束')

# num = input('请输入一个数字:')
# if num.isdigit():
#     num = int(num)
#     if num % 2 == 0:
#         print('偶数')
#     else:
#         print('奇数')
# else:
#     print('输入错误')
#
# print('程序运行结束')
# import tools
# try:
#     pwd = tools.input_password()
#     print(f'获取的密码：{pwd}')
# except Exception as e:
#     print(e)

# num = input('请输入一个数字：')
# if num.isdigit():
#     num = int(num)
#     if num % 2 ==0:
#         print('偶数')
#     else:
#         print('奇数')
# else:
#     print('输入错误')
#
# print('程序运行结束')

num = input('请输入一个数字：')
try:
    num = int(num)
    if num % 2 == 0:
        print('偶数')
    else:
        print('奇数')
except Exception as e:
    print('输入错误', e)
finally:
    print("程序运行结束")